<template lang="pug">
  Card.export
    Table(border,:columns='columns',:data='exportData').export-table
    Button(v-if="$route.meta['/download/dataModel']",icon='md-download',type='primary',@click='handleDataModel') 数据模板下载
</template>

<script>
import { columns, exportData } from './index'
export default {
  name: 'Export',
  data() {
    return {
      columns,
      exportData
    }
  },
  methods: {
    handleDataModel() {
      location.href = `${process.env.VUE_APP_BASE_API}/download/dataModel?token=${this.$cookie.get('token')}`
    }
  }
}
</script>

<style lang="scss">
.export {
  padding-bottom: 50px;
  &-table {
    margin: 10px 0 20px;
  }
}
</style>


